package com.chensheng.converter;

import com.chensheng.dto.OrderDTO;
import com.chensheng.model.OrderMaster;
import org.springframework.beans.BeanUtils;

/**
 * @Author:ChenSheng
 * @Description:
 * @Date: Created in 上午 8:37 2018/5/18 0018
 */
public class OrderDTO2OrderMaster {

    public static OrderMaster convert(OrderDTO orderDTO){
        OrderMaster orderMaster = new OrderMaster();
        BeanUtils.copyProperties(orderDTO, orderMaster);
        return orderMaster;
    }

}
